package com.niguang.work.labour.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE
 * </p>
 *
 * @author 83673
 * @since 2018-11-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("work_child_paper")
public class ChildPaper extends Model<ChildPaper> {

    public static final String ID = "id";
    public static final String CHILD_NAME = "child_name";
    public static final String PAPER_ID = "paper_id";
    public static final String CREATE_TIME = "create_time";
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
        /**
     * 子级证件名称
     */
         private String childName;
        /**
     * 父级证件id
     */
         private Long paperId;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
